home *** CD-ROM | disk | FTP | other *** search
/ The Canadian & World Encyclopedia 1998 / The Canadian & World Encyclopedia 1998 - Disc 2.iso / pc / pb / profile.dir / 00048_Script_#profiles score script < prev    next >
Text File  |  1997-07-29  |  4KB  |  134 lines

  1. global the_rolls,virtualRolloverList,b_sub_key,sub_open, multi_sub,can_play,menu_on,clearmenus,menusub_on, menusub_notgone, vid_delay,current_pm, credit_roll, vidplay, vidstate, endplay
  2.  
  3. on exitframe
  4.   if not sub_open then
  5.     vrolls
  6.     if not multi_sub then
  7.       credit_check
  8.     end if
  9.   end if
  10.   go the frame
  11. end
  12.  
  13. on idle
  14.   
  15.   if vidplay then 
  16.     
  17.     if the movietime of sprite 26 = the duration of the member of sprite 26 then  bio_sub_hide
  18.     
  19.     if endplay then 
  20.       if the timer > 120 then -- inserted to deal with slow starting video
  21.         if the movierate of sprite 26 = 0 then set the castnum of sprite 35 = cast "PLAY.PCT"
  22.         set endplay = 0
  23.       end if
  24.     end if
  25.     
  26.     repeat while the movierate of sprite 26 = 1
  27.       
  28.       if not (the movierate of sprite 26 = vidstate) then vidswitch(vidstate)
  29.       if the movietime of sprite 26 = the duration of the member of sprite 26 then  bio_sub_hide
  30.       updatestage
  31.       if the mousedown then 
  32.         put "the clickon " & the clickon
  33.         case the clickon of
  34.           25 : nothing
  35.           3 : 
  36.             if inside(point(the mouseh, the mousev),the rect of sprite 3) then
  37.               if not inside(point(the mouseh, the mousev), the rect of sprite 25) then 
  38.                 bio_sub_hide
  39.               end if
  40.             end if
  41.           1 : 
  42.             set sub_open = 1
  43.         end case
  44.         exit repeat
  45.       end if
  46.       case true of
  47.         (rollover(35)) : handcursor
  48.         (rollover(36)) : handcursor
  49.         (rollover(37)) : handcursor
  50.         (rollover(43)) :handcursor
  51.         (rollover(1)) :cursor 0
  52.       end case
  53.     end repeat
  54.     
  55.   end if
  56.   if not sub_open then pass
  57.   
  58. end
  59.  
  60. on vidswitch state
  61.   if state = 1 then 
  62.     set the castnum of sprite 35 = cast "PLAY.PCT"
  63.   else set the castnum of sprite 35 = cast "PAUSE.PCT"
  64. end
  65.  
  66. on credit_check
  67.   if not sub_open then
  68.     --    if not multi_sub then
  69.     if inside(point(the mouseh,the mousev),getat(credit_roll,integer(item 3 of the framelabel))) then
  70.       if the visible of sprite 15 = false then 
  71.         set the visible of sprite 15 = true
  72.       end if
  73.     else
  74.       if the visible of sprite 15 = true then set the visible of sprite 15 = false
  75.     end if
  76.     --    end if
  77.   end if
  78. end
  79.  
  80. on vrolls
  81.   if not sub_open then
  82.     repeat with x in virtualRolloverList
  83.       if inside(point(the mouseH, the mouseV), x) then
  84.         
  85.         set the rect of sprite 23 = x
  86.         if the visible of sprite 23 = false then set the visible of sprite 23 = true
  87.         
  88.         -- hard coded : needs a handler for multiple resolutions
  89.         --        puppetsprite 23,true
  90.         --        if multi_sub = 1 then
  91.         --          set the backcolor of sprite 23 = 15
  92.         --        else
  93.         --          set the forecolor of sprite 23 = 21
  94.         --        end if
  95.         updatestage
  96.         handcursor
  97.         
  98.         
  99.         repeat while inside(point(the mouseH, the mouseV),x)
  100.           if the mousedown then
  101.             set b_sub_key = getOne(virtualRolloverList, x)
  102.             set the cursor of sprite 3 = 4
  103.             subwinpop(b_sub_key)
  104.             set the cursor of sprite 3 = 0
  105.             global biosub_rolls 
  106.             set_cursors(biosub_rolls)
  107.             if item 1 of b_sub_key <> "glo" and item 1 of b_sub_key <> "txt" then  
  108.               --              put item 1 of b_sub_key
  109.               viddelay_play 26
  110.               set the castnum of sprite 35 = cast "PAUSE.PCT"
  111.               puppettempo 30
  112.             end if
  113.             starttimer
  114.             exit repeat
  115.           end if
  116.           --          vid_check
  117.           updatestage
  118.           
  119.           --          idle
  120.           -- other stuff, I imagine
  121.         end repeat
  122.         
  123.         exit repeat
  124.         
  125.       else
  126.         cursor 0
  127.         --        set the visible of sprite 23 = false
  128.         set the rect of sprite 23 = rect(-1000,-1000,-999,-999)
  129.         updatestage
  130.       end if
  131.     end repeat
  132.   end if
  133. end
  134.